
<style>
	.red{
		color: red;
	}
</style>
<input type="hidden" name="reply_id" value="{$reply['id']}" />
<div class="alert alert-block alert-new">
	<h4 class="alert-heading">基本设置</h4>
	<table>
		<tbody>
					<tr>
				<th><span class='red'>*</span>楼盘名称：</th>
				<td><input type="text" id="title" class="form-control span7"
						   placeholder="" name="title" value="{$reply['title']}"></td>
			</tr>



					<tr>
						<th><span class='red'>*</span>楼盘地址：</th>
						<td><input type="text" id="lpaddress" class="form-control span7"
								   placeholder="" name="lpaddress" value="{$reply['lpaddress']}"></td>
					</tr>


					<tr>
						<th><span class='red'>*</span>楼盘价格：</th>
						<td><input type="text" id="price" class="form-control span7"
								   placeholder="" name="price" value="{$reply['price']}"></td>
					</tr>

					<tr>
						<th><span class='red'>*</span>售楼电话：</th>
						<td><input type="text" id="title" class="form-control span7"
								   placeholder="" name="sltel" value="{$reply['sltel']}"></td>
					</tr>


					<tr>
						<th><span class='red'>*</span>咨询电话：</th>
						<td><input type="text" id="title" class="form-control span7"
								   placeholder="" name="zxtel" value="{$reply['zxtel']}"></td>
					</tr>


					<tr>
						<th><span class='red'>*</span>项目介绍：</th>
						<td>
							<textarea name="intro" class="form-control span7 richtext" id="intro" cols="70" >{$reply['intro']}</textarea>

							</td>
					</tr>



					<tr>
						<th><span class='red'>*</span>预约报名标题：</th>
						<td><input type="text" id="order_title" class="form-control span7"
								   placeholder="" name="order_title" value="{$reply['order_title']}"></td>
					</tr>


					<tr>
						<th><span class='red'>*</span>预约报名说明：</th>
						<td><input type="text" id="title" class="form-control span7"
								   placeholder="" name="order_remark" value="{$reply['order_remark']}"></td>
					</tr>



					<tr>
				<th><span class='red'>*</span>开盘时间：</th>
				<td>{php echo tpl_form_field_date('kptime',$reply['ktime'],false)}</td>
			</tr>
			
			
			<tr>
				<th><span class='red'>*</span>入住时间:</th>
				<td>{php echo tpl_form_field_date('rztime',$reply['rztime'],false)}</td>
			</tr>
			
			
			
			<tr>
				<th>开发商：</th>
				<td><input type="text" id="copyright"
					class="form-control span7" placeholder="" name="kfs"
					value="{$reply['kfs']}">
					<div class="help-block"></div></td>
			</tr>
		</tbody>
	</table>
















	<!-- 说明项  -->
	<h4 class="alert-heading">说明项</h4>
	<table>

 				 <thead>
         						 <tr>
                                    <th>说明名称</th>
                                    <th>说明内容</th>
                                     <th>排序</th>
                                  
                                    <th>操作</th>
                                </tr>
                      </thead>
			
		<tbody id="house-items">
			
			
			{loop $house_items $house_item}
			<tr class='house_item'>
				<td><input name="house_iname[]" type="text"
					class="form-control span3" value="{$house_item['iname']}"
					 /></td>
				<td><input name="house_icontent[]" type="text"
					class="form-control span3" value="{$house_item['icontent']}"
					 /></td>
					 
					<td><input name="house_sort[]" type="text"
					class="form-control span1" value="{$house_item['sort']}"
					 /></td> 

				<td>
				 <input  name="house_ids[]" type="hidden" value="{$house_item['id']}" />
				<a href='javascript:;' onclick='removeHouseItem(this)'><i
						class='icon icon-remove fa fa-times'></i> 删除</a></td>
			</tr>
			{/loop}
			
			
			

		</tbody>

	</table>




             <a href="javascript:;" onclick="addHItem();"><i class="icon-plus-sign" title="添加说明"></i>添加说明</a>








	<h4 class="alert-heading">图片设置</h4>
	<table>
		<tbody>
		<th><span class='red'>*</span>欢迎页封面图片：</th>
		<td>{php echo tpl_form_field_image('cover_img',$reply['cover_img']);}<span><font color="red">建议大小(640*900px)</font></span></td>
		</tr>

		<th><span class='red'>*</span>概览篇图片：</th>
		<td>{php echo tpl_form_field_image('overview_img',$reply['overview_img']);}<span><font color="red">建议大小(750*584px)</font></span></td>
		</tr>


		<th><span class='red'>*</span>项目介绍篇图片：</th>
		<td>{php echo tpl_form_field_image('intro_img',$reply['intro_img']);}<span><font color="red">建议大小(750*584px)</font></span></td>
		</tr>

		</tbody>
	</table>







	<h4 class="alert-heading">图文设置</h4>
	<table>
		<tbody>
			<th><span class='red'>*</span>图文标题：</th>
			<td><input type="text" id="news_title"
				class="form-control span7" placeholder="" name="news_title"
				value="{$reply['news_title']}">
				<div class="help-block"></div></td>
			</tr>

			<th><span class='red'>*</span>分享 图标：</th>
			<td>{php echo tpl_form_field_image('news_icon',$reply['news_icon']);}</td>
			</tr>



			<tr>
				<th><span class='red'>*</span>图文描述：</th>
				<td><textarea style="height: 60px;" name="news_content"
						class="form-control span7" cols="60">{$reply['news_content']}</textarea>
				</td>
			</tr>
	</table>



	<h4 class="alert-heading">分享设置</h4>
	<table>
		<tbody>
		<th><span class='red'>*</span>分享标题：</th>
		<td><input type="text" id="news_title"
				   class="form-control span7" placeholder="" name="share_title"
				   value="{$reply['share_title']}">
			<div class="help-block"></div></td>
		</tr>

		<th><span class='red'>*</span>分享 图标：</th>
		<td>{php echo tpl_form_field_image('share_icon',$reply['share_icon']);}</td>
		</tr>



		<tr>
			<th><span class='red'>*</span>分享描述：</th>
			<td><textarea style="height: 60px;" name="share_content"
						  class="form-control span7" cols="60">{$reply['share_content']}</textarea>
			</td>
		</tr>
	</table>


</div>
<script>
	
	$(function() {
		//kindeditor($('#share_txt'));
		kindeditor($('#intro'));
		//kindeditor($('#joincontent'));
	});
</script>


<script>
	function addHItem() {

		var index=$("#house-items tr").length+1;
		
		var html = "<tr class='house_item'>";
		html += "<td><input name='house_iname[]' type='text' class='form-control span3' value=''  /></td>";
		html += "<td><input name='house_icontent[]' type='text' class='form-control span3' value='' /></td>";
		
		html+="<td><input name='house_sort[]' type='text' class='form-control span1' value='"+index+"' /></td> ";
		
		html += "<td> <input  name='house_ids[]' type='hidden' value='' /><a href='javascript:;' onclick='removeHouseItem(this)'><i class='icon icon-remove fa fa-times'></i> 删除</a>";
		html += "</td>";
		html += "</tr>";
		$("#house-items").append(html);

	}
	function removeHouseItem(obj) {
		$(obj).parent().parent().remove();
	}




</script>